﻿#ifndef VALDEFS_H
#define VALDEFS_H

#define ABOUT_TEXT ("关于\n聊天Demo\n作者：xsh\n邮箱：xishuhuan2023@yeah.net")
#define SOCKET_BUF_LEN (255)
#define DEFAULT_SERVER_PORT (10088)
#define KEY_LEN (2048)

#define TYPE_MSG            (1)
#define TYPE_REQ_REG        (2)
#define TYPE_REQ_UNREG      (3)
#define TYPE_REQ_PUBKEY     (4)
#define TYPE_REFRESH_LOGIN  (5)
#define TYPE_LOGIN          (6)
#define TYPE_LOGOUT         (7)

#define NOT_ENCRYPTED           ("NOT_ENCRYPTED")
#define PARSE_FAILURE           ("PARSE_FAILURE")
#define ID_CHECK_FAILURE        ("ID_CHECK_FAILURE")
#define TARGET_OFFLINE          ("TARGET_OFFLINE")
#define SUCCESS                 ("SUCCESS")
#define TYPE_NOT_SUPPORTED      ("TYPE_NOT_SUPPORTED")
#define TARGET_NOT_FOUND        ("TARGET_NOT_FOUND")
#define ALREADY_LOGGED_IN       ("ALREADY_LOGGED_IN")
#define ALREADY_LOGGED_OUT      ("ALREADY_LOGGED_OUT")
#define INCORRECT_PASSWORD      ("INCORRECT_PASSWORD")
#define DATA_NOT_VALID          ("DATA_NOT_VALID")
#define PUBKEY_CONFIRMATION_STR ("1234567890 !Confirm Pubkey! 1234567890")
#define TARGET_NOT_ONLINE       ("TARGET_NOT_ONLINE")
#define SERVER_SOCK_FAILURE     ("SERVER_SOCK_FAILURE")

#endif // VALDEFS_H
